import { genParams } from "@/utils/public"
import request from "@/utils/request"

/**
 * 获取用户渠道信息  get
 * @param {
*  username: 登录用户 必须
*  password: 登录密码 必须
* } data 
*/
export const user_login = (data) => {
    let url = '/api/web/user/login';
    return request({
        url: url,
        method: 'POST',
        headers: {"Content-Type": "application/x-www-form-urlencoded"},
        data
    })
}

//获取用户列表
export const get_users = (data={}) => {
    let url = "/api/user/bm/get-admin-list" + genParams(data);
    return request({url: url})
}

        
        
 